#ifndef COLORSCALE_H
#define COLORSCALE_H

#include <QSharedPointer>
#include <QColor>

class ColorScale
{

private:
    static QSharedPointer<ColorScale> _instance;
private:
    double _minValue;
    double _maxValue;
    double _blueCoefficient;
    double _greenCoefficient;
    double _orangeCoefficient;

    ColorScale();
public:
    static QSharedPointer<ColorScale> instance();
    QColor getColor(double value);
    void setBoundValues(double minValue, double maxValue);
    double getMinValue();
    double getMaxValue();
};

#endif // COLORSCALE_H
